AI 编程工具 Trae

939次阅读
15 条评论

共计 1376 个字符,预计需要花费 4 分钟才能阅读完成。

2025.2.17,终于迎来了Windows版本正式上线,赶紧下载试用。

一开始碰到很头疼的问题:

类型"{ class: string;openType: string; onChooseavatar: any;}"的参数不能赋给类型4<rout"ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Readonly<Partial<{ size.CButtonSize; type: ButtonType; plain: boolean; disabled: boolean; loading: boolean;6formType: _ButtonFormType; openType: _ButtonOpenType; ... 24 more ...8styonAgreeprivacyauthorization: _Button0nAgreeprivacyauthorization; }>>, ....”的参数5n不能将类型“{ class:string;openType: string;onchooseavatar: any;}"分配给类型6."ComponentPublicInstanceConstructor<createcomponentPublicInstance<Readonly<Partial< size:7ButtonSize; type:  ButtonType; plain: boolean; disabled: boolean; loading: boolean;8formType: ButtonFormType; openType: _ButtonOpenType; ... 24 more ...;9<temponAgreeprivacyauthorization: _Button0nAgreeprivacyauthorization; }>>, 

类似这样的类型错误,以及保存文件的时候右下角提示:

从 "'Stylelint', 'ESLint', 'JavaScript 和 TypeScript 的语言功能'" (configure)中获取代码操作。

第一个错误是因为vue-official 插件的版本问题,从cursor或者vscode导入配置完成的时候,有个查看详情,可以看到一些跳过的插件,一开始不明白为什么跳过,后来感觉是trae不支持那边的插件版本,导致跳过插件安装。这时候就到插件市场下载旧点版本的过来手动安装就可以了。

trae官方文档:从vscode安装插件

关于第二个问题,貌似没有根治。网上说是设置中:

// 保存的时候自动格式化
  // "editor.formatOnSave": true,
  //开启自动修复
  "editor.codeActionsOnSave": {
    "source.fixAll": "explicit",
    "source.fixAll.eslint": "explicit",
    "source.fixAll.stylelint": "explicit"
  },
这两个设置可能有冲突,我注释掉了 `editor.formatOnSave` 之后,还是会提示,不过好像会好点,提示的次数少了。
这个设置在项目根目录下的  .vscode/settings.json 中会有,在trae的总体settings.json中也可能会有,都检查一下。
正文完
 0
评论(15 条评论)

I just like the helpful information you provide in your articles

     泰国暖武里府True

I just like the helpful information you provide in your articles

     泰国暖武里府True

Awesome! Its genuinely remarkable post, I have got much clear idea regarding from this post

     泰国暖武里府True
2025-08-16 20:21:57 回复

This was beautiful Admin. Thank you for your reflections.

     泰国暖武里府True

You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!

     泰国暖武里府True

very informative articles or reviews at this time.

     泰国暖武里府True

naturally like your web site however you need to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth on the other hand I will surely come again again.

     泰国巴吞他尼府True

I very delighted to find this internet site on bing, just what I was searching for as well saved to fav

     泰国巴吞他尼府True

I am truly thankful to the owner of this web site who has shared this fantastic piece of writing at at this place.

     泰国巴吞他尼府True

Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.

     泰国巴吞他尼府True

For the reason that the admin of this site is working, no uncertainty very quickly it will be renowned, due to its quality contents.

     泰国巴吞他尼府True

I like the efforts you have put in this, regards for all the great content.

     泰国北榄坡府True

Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.

     泰国北榄坡府True

very informative articles or reviews at this time.

     泰国北榄坡府True

Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.

     泰国北榄坡府True